package com.hmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.order.pojo.OderDTO;
import com.hmall.order.pojo.Order;

public interface IOrderService extends IService<Order> {
    /**
     * 创建订单
     * @param oderDTO
     * @return
     */
    Long createOrder(OderDTO oderDTO);

    /**
     * 订单支付
     * @param orderId
     */
    void orderPay(Long orderId);

    /**
     * 根据订单id修改订单状态
     * @param orderId
     */
    void updateStatus(Long orderId);
}
